projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d179b7
)
[XEND] Fix some bad names left behind while converting all storage to
author
Alastair Tse
<atse@xensource.com>
Fri, 13 Oct 2006 14:38:13 +0000
(15:38 +0100)
committer
Alastair Tse
<atse@xensource.com>
Fri, 13 Oct 2006 14:38:13 +0000
(15:38 +0100)
bytes rather than KB.
Signed-off-by: Alastair Tse <atse@xensource.com>
tools/python/xen/xend/XendStorageRepository.py
patch
|
blob
|
history
diff --git
a/tools/python/xen/xend/XendStorageRepository.py
b/tools/python/xen/xend/XendStorageRepository.py
index 754c4f065193c629ea451da16b3e09de8029a6d2..17ef66746363bc95b0867bf8ec05fb6709b5d870 100644
(file)
--- a/
tools/python/xen/xend/XendStorageRepository.py
+++ b/
tools/python/xen/xend/XendStorageRepository.py
@@
-309,7
+309,7
@@
class XendStorageRepository:
if self.storage_max != XEND_STORAGE_MAX_IGNORE:
return self.storage_max
else:
- return self.free_space_
kb() + self.used_space_kb
()
+ return self.free_space_
bytes() + self.used_space_bytes
()
finally:
self.lock.release()
@@
-321,7
+321,7
@@
class XendStorageRepository:
try:
total_used = 0
for val in self.images.values():
- total_used += val.
get_physical_utilisation()
+ total_used += val.
physical_utilisation
return total_used
finally:
self.lock.release()